import Vue from 'vue'

let server = process.env.VUE_APP_RESTAURANTPCSERVICE;
let faceLoginUrl = '/user/faceLogin';
let logoutUrl = '/user/logout';

export default {
	faceLoginUrlService: function(paramsObj, callBack) {
		Vue.axios.post(`${server}${faceLoginUrl}`, paramsObj, {
			headers: {
				'Content-Type': 'multipart/form-data',
			}
		}).then(res => {
			callBack(res.data);
		})
	},
	logoutService: function(callBack) {
		Vue.axios.post(`${server}${logoutUrl}`).then(res => {
			callBack(res.data);
		})
	}
}
